import request from '@/utils/request'

// 查询积分商城订单列表
export function listMallOrder(query) {
  return request({
    url: '/customer/mallOrder/list',
    method: 'get',
    params: query
  })
}

// 查询积分商城订单详细
export function getMallOrder(id) {
  return request({
    url: '/customer/mallOrder/' + id,
    method: 'get'
  })
}

// 新增积分商城订单
export function addMallOrder(data) {
  return request({
    url: '/customer/mallOrder',
    method: 'post',
    data: data
  })
}

// 修改积分商城订单
export function updateMallOrder(data) {
  return request({
    url: '/customer/mallOrder',
    method: 'put',
    data: data
  })
}

// 删除积分商城订单
export function delMallOrder(id) {
  return request({
    url: '/customer/mallOrder/' + id,
    method: 'delete'
  })
}
